/**
 * 
 */
package com.yunhe.tomcat.model;

import java.util.Date;
import com.yunhe.tomcat.util.DateUtil;

/**
 * 学生实体
 * 
 * @author 米mi
 *
 */
public class Student {

    /**
     * 学生ID
     */
    private int studentId;

    /**
     * 学生姓名
     */
    private String studentName;

    /**
     * 学生性别
     */
    private String studentSex;

    /**
     * 学生年龄
     */
    private int studentAge;

    /**
     * 入学日期
     */
    private Date studentDate;

    /**
     * 入学日期字符串
     */
    private String studentDateStr;
    
    /**
     * 删除状态
     */
    private int studentState;

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getStudentSex() {
        return studentSex;
    }

    public void setStudentSex(String studentSex) {
        this.studentSex = studentSex;
    }

    public int getStudentAge() {
        return studentAge;
    }

    public void setStudentAge(int studentAge) {
        this.studentAge = studentAge;
    }

    public Date getStudentDate() {
        return studentDate;
    }

    /**
     * 将studentDate转换为字符串
     * @param studentDate
     */
    public void setStudentDate(Date studentDate) {
        this.studentDate = studentDate;
        this.studentDateStr = DateUtil.formatDate(studentDate, "yyyy-MM-dd HH:mm:SS");
    }

    public String getStudentDateStr() {
        return studentDateStr;
    }

    public void setStudentDateStr(String studentDateStr) {
        this.studentDateStr = studentDateStr;
    }
}
